package cn.javass.dp.chianofresponsibility.mydemo3;

public class Dead extends LeaderHandle  {
    @Override
    public void handleRequest(int leaveDays) {
        if (leaveDays >7 ) {
            System.out.println("爸爸批准了");
        } else {
            if (successor != null) {
                successor.handleRequest(leaveDays);
            }
        }
    }
}
